package com.example.app.data.bean

import com.squareup.moshi.Json

data class UserInfo(
    @Json var _id: String = "",
    @Json var admin: Boolean = false,
    @Json var Email: String? = "",
    @Json var Password: String? = "",
    @Json var Username: String? = "",
    @Json var Prefix: String? = "",
    @Json var Phone: String? = "",
    @Json var Agreement: Boolean? = false,
    @Json var CreateAt: String? = "",
    @Json var UpdateAt: String? = "",
    @Json var DeleteAt: String? = "",
    @Json var AuthData: String? = "",
    @Json var AuthService: String? = "",
    @Json var EmailVerified: String? = "",
    @Json var Nickname: String? = "",
    @Json var FirstName: String? = "",
    @Json var LastName: String? = "",
    @Json var Position: String? = "",
    @Json var Roles: String? = "",
    @Json var AllowMarketing: String? = "",
    @Json var Props: String? = "",
    @Json var NotifyProps: String? = "",
    @Json var LastPasswordUpdate: String? = "",
    @Json var LastPictureUpdate: String? = "",
    @Json var FailedAttempts: String? = "",
    @Json var Locale: String? = "",
    @Json var MfaActive: String? = "",
    @Json var MfaSecret: String? = ""
) {
    fun clearUserInfo() {
        _id = ""
        admin = false
        Email = ""
        Password = ""
        Username = ""
        Prefix = ""
        Phone = ""
        Agreement = false
        CreateAt = ""
        UpdateAt = ""
        DeleteAt = ""
        AuthData = ""
        AuthService = ""
        EmailVerified = ""
        Nickname = ""
        FirstName = ""
        LastName = ""
        Position = ""
        Roles = ""
        AllowMarketing = ""
        Props = ""
        NotifyProps = ""
        LastPasswordUpdate = ""
        LastPictureUpdate = ""
        FailedAttempts = ""
        Locale = ""
        MfaActive = ""
        MfaSecret = ""
    }
}
